package number

import (
	"github.com/google/wire"
	"sieve_admin_server_userpass/app/api/util"
	"sieve_admin_server_userpass/app/server"
)

var (
	_                util.API = (*NumberSegmentAPI)(nil)
	NumberSegmentSet          = wire.NewSet(wire.Struct(new(NumberSegmentAPI), "*"))
)

type NumberSegmentAPI struct {
	util.EmptyAPI
}

func (a *NumberSegmentAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "segment",
			Title: "生成号段", Perms: []*server.Perm{
				{Name: "init", Title: "生成号段"},
			},
			Order: 8,
			//DisableMenu: 1,
		},
	}
}
